Add Javascript for versionswitcher