to see how the civicrm api can be used in js