Fixed code style in building.js
Made a dictionary for the units and textObjects in building