logic done, time for jquery