practice using javascript to make a functioning calculator