browser history quirk fix

Submitting a form in a javascript onload handler does not add the last page to history. Fix this by manually adding element to history