Fixed issue with reading .js files