Update JS code

  - Update square.js so comments are more clear.
  - Update squareup.js to make it easier to adjust game sizes for the future.