fixed javascript issue + characterHasItem