bugfix: removed calls to deleted getCSSRule() method. moved CSS rules into stylesheet.