Fixed some jshint issues, now confirming to project code style.