add register_user and js file