Add back in popState handling to JS

- Still needs to update checkboxes