One line for all your javascript?
Any reason you chose to write the example this way?