lab1 javascript