Allow js segment to parse some basic strings

without much error checking...