#598 Added js client for apiv2 and updated js client link for APiv1