CommonJS module framework for use in web applications