It was added as an inline script tag in the user's edit page, so I just moved it all in here