Reorder javascript and ruby sections