fix cache manifest and added api.js to process json