fixing JSHint issues