working javascript script solving (easy) Programming Challenge ID 110104