Clean up how we are doing the browser specific fix-ups so they are only
applied on the relevant browsers.
Work around the bug that occurs in IE10 and below (pressing enter in a
text box causes the first button in the same form to be clicked) by
explicitly wrapping in a <form/> tag in case other buttons are added to
the page (we do this in the BladeRunnerJS template), and ensuring that
the other button in the same form is not considered to be a submit
button.

Since explicitly wrapping in a <form/> causes Chrome to submit when you
press enter, I also added code to prevent this from occurring.