reorder javascript tag