Alasdair/rwd header and footer

Minor nitpick, but I see there are no spaces between the parentheses here, and on some lines below this one. Is switching between the two styles intentional? If not, we should take some time to decide on spaces or no spaces. Will expressed a desire for no spaces, since that mirrors our Python code more closely; I'm with him on this one. However, if use of spaces between parentheses is a convention we want to enforce in our JS, we should start by being consistent here.