added scrolling up and down when moving an element outside of document; added closure-compiler instead uglify