Fixed JSHint errors