format core.js
add 3rd-party json lib
add new code to cookie.js json.js