Added option to specify requestHeaders in loadFile()