Fix JS error on profile page
Fix JS error on registration metadata entry page
Fix register page; move mako def out of conditional

Also, call parent template's javascript_bottom()
Merge branch 'feature/javascript-errors' into develop