abstract 3d maze in html5 and javascript