a kiss javascript/php set of APIs