Changed function "createCssRules".

Regarding issue #223.

@Maheshkumar-Kakade posted a solution that worked fine for us.