Added new copyInput() parser which copies input if delegate parses.
Extended JSON parser to support JS variables, dereferencing, and function calls.