Removed old ajax lib, creating a new one based on promises