JDocument::addScriptDeclaration

Adds a script to the page