Fixed bug preventing ajax call, cleaned up debuggers and console.logs