Use Html::linkedScript

Proper escaping etc.

Change-Id: Ifa9590f733f85caf91ac20fbab51325dcba9e8ea