Add javascript and html rules