some example of javascript use