Learning javascript from udacity