coding dynamic jquery
move methods to outside
add for json slim
modify typos
rename for_json to render_simple
modify