#300 fix JSHint errors