fixed issues with resource access in towncenter.js