Thanks for playing our game! You can find the grappling hook's source code here, the relevant lines are mostly 164-176 (they handle its physics).
The HTML export is built into Godot.
Thankyou for that. that helped a lot. I really like that game. I am using GD Script actually, but I will get it working somehow. Thankyou for submitting!