Added buildings code to js