Updated code so dom elements are injected and ruleset is loaded via AJAX. (css is currently broken)