Added Javascript homework 3