updating files for JS SDK to be generic

Will need to add documentation for required changes for this to work.