Adding Leap JS code