Added direct call of phantom in order to avoid troubles with old browsers

Call callPhantom() function directly through htmlReady() function, and not by dispatching a custom event, which is not supported by old browsers.