Moved over (probably) all of the javascript logic on the register to requireJS