Create user.  Create form, ajax request, server action.
Separate js logic into separate files.