moved add user script into a new js file

moved add user script into a new js file