added some basic javascript 3d stuff