Retrieve window.width, window.height from sent JSON by JS.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>