generate js files