Fixed everything that pissed off JSHint
Merge pull request #1 from JamesS237/master

Fixed everything that pissed off JSHint