Building JQuery app from scratch