[validate js ]