added comments to hacked javascript