fixes double rendering bug (#748)

ES6 destructuring! Transpiles back to the exact same thing, but it's fun to write. http://globaldev.co.uk/2013/10/es6-part-3/