improved system. added jquery. etc