basic usage of javascript