changing upDown to up only
validating JS