Use documentElement to get the root <html> element instead of adding an id to the root element.
q.Promise
new Promise