JavaScript for LAB1