Inline stylesheets work *but* you usually want to completely separate style from the HTML.  Granted, you wanted each buildings code to be consolidated, so I understand why you made this decision.  What I might have done is given each building an entire folder to itself, and had separate html, css, and js files for those buildings.