add js validate