2D Damage Example Update

Removed a js file that I didn't actually use in the hacked-together UI
and added a file with pseudo-code for clarity.