Npc's can attack

-NonPlayerCharacters can now attack back when hit. 

-Refactored way Javascript works so it is less procedural and more object oriented. 

Next: 
Make it so characters cannot launch multiple attacks at once.
Make it so NonPlayerCharacters keep attacking until their target it dead or they are dead