Inject stylesheet into template instead of using obsolete WebKit method