Updated API.js

Updated to output part of json object into HTML.