Refactor to make dart.js the last script