update tags generation javascript.