Fixed ordering issues with nodejs and running the compile script.