learning JavaScript typos