Feature/decouple js sdk

@jjackson26 @swarajban Path changes to support decoupling.