change main.coffee to send correct JSON format