update documentation: - removed older apis - updated js snippet
update documentation:
- removed older apis
- updated js snippet

prateekbhatt/userjoy-integration-documentation,prateekbhatt/userjoy-integration-documentation