remove unused code
encription/decripton bugfixing
cleanup
return success => 0 for all json function
js bugfix