Fix loading order in JS manifest