Initial studies in javascript