Update: changed callbacks in setTimeOut to arrow functions
Changed callbacks in setTimeOut calls to arrow functions to inherit the reference of the class, instead of binding them to this. Did this to follow the changes made in ES6.
Changed callbacks in setTimeOut calls to arrow functions to inherit the reference of the class, instead of binding them to this. Did this to follow the changes made in ES6.