Changed function "createCssRules".

regarding issue #223

@Maheshkumar-Kakade posted a solution that worked for us