bug 618262 - Removal of JS_NewString. r=brendan