js compile ordering