adds uncaughtException event handling on process
fixes jslint warnings
removes forgotten logs