Change css rule handling to support firefox

More issues still left: jquery-csv plugin etc.