Bug 964238 (part 3) - Make js_NewString() return static strings when appropriate. r=terrence.

--HG--
extra : rebase_source : 47ce8ef1396b03ea6bdf3a1a0eed8e3bd6b5634c