Added jslint stuff and made it a bit more jslint compatible