JS neatening for validation / input

Signed-off-by: Elliot Condon <e@elliotcondon.com>