add to server.js
Merge pull request #1 from sirjerky/json-api

add to server.js