Use .js for module names

Issue #1221