Move the Javascript-Code for the Dropdown Menu into a separate file.