Integrated Bugsnag JS part, added jshint conf file, added tests and refactored some front-end code