Include the xray javascript

Include xray.js in the view, so that it doesn't need to be included manually.