Added JSHint to the project and fixed all of the warnings in the plugin