Bug in javascript

ashwin, you have a bug where you should check for undefined, not null. i don't use 3 columns.