Fix bug in _parse (javascript)