generates a clean stock_chart.js and update_stocks.js