Updating to use oj.emit to turn response into a tag-like function