some exercises of javascript