rename html test and add comments to js functions