[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.