Fix js dependency order