JavaScript file loader for browsers and Node.js