Hi there,
If it weren't for copyright and intellectual property right laws etc. I'd say just tell you to take the page source and swap all the x's with y's and y's with x's in the JavaScript code. Otherwise, you need to actually search in Google and learn how to use JavaScript/jQuery properly to manipulate the DOM. Your question is asking for someone to write a full project, not just a simple answer. I suggest you start here:
W3Schools jQuery
Ed