moved js from tmpl sub files to buildingd.js