Update loadFile - support coffee-script file

I customized loadFile so that CoffeeScript is loaded directly.