Add examples for JavaScript and TypeScript.
firstname -> fname; lastname -> lname