add: js validation