Fixed loading .min.js files

Test for existence .js file and loading .min.js file is bug or nonsence. So I fixed it and added fallback for .js files loading, if .min.js file is missing and we want minified version.