changed eval function;
jenerating JSON instend of escaping to js string.