removing periodical ajax calls in buildings.js and replacing them with onsuccess calls. Incomplete