Append .js extension if not provided

Allows the same syntax as used in a browserify build.