Merging the new signup page with improved js

See previous commits.