[ucw-ticket] [ucw] #5: Javascript validation cleanup