Update glitch.js

Add latest changes to JS file
-undo functionality
-image loader that gets image from local machine
-some refactoring