example of javascript