Finalize refactoring to abilities in JS so that the game actually works again. :)