Doing some javascript along with the book "Professional Javascript for Developers"