use JS to jump to top on error using slightly ugly url anchors

Rails is being "clever" again. This "fix" makes the page stay at top on error, for non-IE browsers.