Javascript Chess Logic

Added the JavaScript code that I created for my chess project last
semester in order to get the move logic