Updated adding of achievements to use ajax.