Reordered javascript loading order