first try of javascript