update js output with Alan's fix. :)