added comments to js and html files + ability to collapse/expand hints box