* change api call to be more JavaScript-eze
* add test