Fixed #640 and render %css% tag.

 Also removed scriptOffset as not used anymore.