Explain how to integrate with JS code