Fix order of JavaScript imports