SDK for using latch in javascript enviroment