add js-object that handles apis-calls to frontend