Wait till the dom is loaded (avoid NPE) related to #87