attempt to get history state to work in js