Javascript version of Battleships