change javascript loading order