Move main js into app pipeline