Minor JS Changes - apicall.js