Fixed most jsHint errors