增加service, 改掉xss(只针对script)

去掉一个无用函数, 增加service方法(tested)

改用jsonify, application/json
Merge pull request #15 from tonicbupt/master

service/xss