[js] test for Std.string optimization