Small change to optimize code for minifiers

Our poduct uses an js-minifier, which chokes on some missing curly braces on if-statements. It would be nice to include this in the history js source, so I don't have to change it every time there is an update.