Use JSHint in gulp task

fixed some lint errors