Validate js to do