refactor loadAsFile to use an array of extensions

Conflicts:
	src/commonjs_bridge.js
add ability to require other file extensions

keeps js an json as defaults