address jhint errors