Added `echo 'var data='` before json printing.