Replace js with min version
Fix file permission