Refactoring.
Refactoring: moved function "appendNullOrJsString()" to ScriptBuilder.