Re-implemented basic JavaScript value parsers