Check and minify js