Hi Iceman,
this code needs to be inserted into the http payload.
An http header (as in your sample iRule) would be the wrong place.
As it needs to placed between the <head></head> tags (just googled it), your iRule will not work.
I can have a look at it tomorrow night, if there is no solution in the meantime.
Stephan