Fixing an issue introduced by 93411a13cafb165d123a7ec20eeb1333af453102.

Commit 93411a13cafb165d123a7ec20eeb1333af453102 replaced console.log
by window.callPhantom to transmit commands from the web page to
PhantomJS, but there were two places still using console.log.
This commit fixes them.