A separate bit of code in main.js deals with switching the action attribute of the form when the user switches from UG to PG. This bit of functionality is too specialised to need its own module. This will act by default on a form marked js-course-search.

Use