Move webcomponents flag to correct funciton body