Using JS JSON API

Using JS JSON API with bar type