TypeError: $w(...).expand is not a function??

@guintoallona
Yes, i hope you fixed this line here…

$w("buildingdataset").expand();

Because you can’t expand a DATASET.

Did you have sunced your SANDBOX with your LIVE-DATABASE ?
This could be the reason why you don’t get anything shown on your LIVE-Site.