JavaScript APIs solution added.