Changed function "createCssRules"

Regardig Issue#223.
@Maheshkumar-Kakade posted a solution that worked fine for us.