Fixed everything that pissed off JSHint

As the title said. Shoudn't break anything that wasn't already broken :smile: