Adding javascript to reorder aside element based on media query