Commented out console.log()s and fixed a syntax error - its currently not executing jewel swaps in Chrome :/