dynamically generating api.js
deleted public.api.js