2 pass to make sure js is generated