javascript related stuff

cleaned up javascript code
added move functionality too objects in the scene