effects/scale: Rewrite the effect using ES6 features
Since the scripted effects were ported to QJSEngine, it's possible now to use ECMAScript 2015 perks such as classes, let and const.
This change ports the scale effect to some ES6 features to make the code neater.