adding correct ajax call
adding sinatra for localhost connection
removing unused methods