JS to module