added xray.js file and updated README