added index2-javascript hw. User document.write to generate