example of prototype javascript