fix comment and update javascript