Parse immediate identifiers from a js expression string (useful for template engines)