try config js funcs in block of code as prev. attempt was generating a PurpleRobot not defined
more attemts to track down err thrown 'PurpleRobot not defined'
just testing  PR API calls in form
PR form api calls not generating error prev test, so reverting back commented out code..