remove dependency of JQuery and fix some error with text item