[feature] Fix Javascript errors introduced by webpack

This changes no functionality, but fixes errors introduced by the order javascript files were included on the user profile and node registration pages.
Currently getting an error when going to the create registration page.

Here's the traceback: https://gist.github.com/anonymous/d48ab6d821ccf8bf5678