Development of js API's for genneral Propouse