History: cruft removal from controller and associated javascript