move automatic js adding to js bundle