Ok, I did just as you said. I placed the xml (named mystyles.xml) into the WA_iRite directory.
I made the changes to the js file just as you said and uploaded it to the server as well. When trying to go to test.php, I got an error. I've made a screenshot so you can see what the error says.