expose resourceUrl as global function in client javascript
0.6.6