move json script to external js
cleanup