Update station text box when popping history states

For some reason, states weren't completely properly handled anymore with
Firefox 24.  Make sure we push a JS object with the added benefit of making
this fix easier.