Added javascript for api test
Added api to readme