adds js logic for campus switching