added javascript jenut test for a single api