Added a line that makes sure that dart.js only executes when the DOM is ready.