Code for javascript course