use window.resourcePath