Tiny refactoring to declare a js-module