MDL-55417 theme_noname: Update mform templates to re-use javascript