Fix order of loading js.