Adding web listener using Sinatra (still buggy)