changed some JSHint errors