yet another javascript/php set of APIs