Fixed Javascript error occuring on page 1.html