Dynamic todo list app using Sinatra and jQuery