some work on PHP arrays and basic jquery on css selectors.