changed scriptView to use addJSHeader natively.
changed scriptView to use addJSHeader natively.

+ Fixed var list to encode array variables automatically.

AppStateESS/stories,AppStateESS/stories,AppStateESS/stories,AppStateESS/stories