Added models to jshint
Cleanup of bad behavior and satisfaction of JSHint. :)

Function definitions should always have the opening { in the same line! Also make sure to use ";" accordingly.