rename xb.js to resources/xb.js