Encapsulate module code in JavaScript.