I think this can be written shorter, since we're repeating the page url's here. Instead of using a switch case can't we just say:
`jsPath = page;` ?