modified how payments.js is included and how javascript on the user form template is declared so that payment submit button works properly