Working on a very simple JavaScript bug. :(