Corrected small javascript bugs and sizing of list