Remove dependency on JQuery
Add function to get all rules associated to a specific element.