JS loading order changed