Add support to initialize the SDK JS library using JavaScript