Is there a reason to put this in partial rather than in a JS file?