Fixed js.image interface to return window handle

js.image did not properly return the window handle, unlike its counterpart js.chart.
ps: thanks for the great visualization tool !