add comments of battleship.js

I didn't change your code, I only formatted it, so just check my
comments.