generate js files into separate folder