Fixed Bug with internal rules in a script tag
Fixed allowedCharacters doesn't work