testing raw js implementation for rule modal