Fixed Jshint Issues

Some jshint issues and some typos.
Code Cleanup