Updated makefile to work with uglify2
Modified event handling to work with IE11.