Tp snake 3D javascript