fix JSHint issues