Having `var TogglerProto` here looks cleaner but style guide states `var` decs should be at the top of the scope: ... https://github.com/moneyadviceservice/javascript#variables  I cannot see any side effects of keeping it where it is TBH.