Fix JS to load default view.