JavaScript validate instead of WTF validate