Fix JS require order