updated js to create an account
js and php