passing html and json string to js
GOOOD SHIT