fixes a behavior of Javascript to wrap this inside an object