Is it possible to do something like this in a head tag, of master page, which has runatserver:
Another solution I've found here: https://stackoverflow.com/a/5727996/368613 -- just place code inside PlaceHolder:
... your code with <%= %> tags ...