Webclient: Cleaned out unused codes and old comments from boxes.js, added some jsdocs