spinningCube.js added and prototype used