changed minify check to if(Config::get(minify_js))