fixing wrong script-tag in head (refs #979)