Fixed #640 and render %css% tag. Also removed scriptOffset as not used anymore
Merge pull request #709 from remy/fix/640-css-replacement

Fixed #640 and render %css% tag.