Live Calculator + Math module using ruby and sinatra