JavaScript: Canvas 2D Gravitation