added jsless-*-beforestart to htmlevent