Fixed loading .min.js files and added fallback for .js files