3D coordination in jquery