Added ajax and log functions. Tests now working for getInternal and getExternal