Fix sequence of JS inclusion