cleaning up and documenting code
barely functioning jquery add items stuff