added rules to rules.xml to include javascript code