add jquery plugin for legacy check, and accordian code