Try def `AsyncSemahore.execute = function AS_execute() {};` outside of the constructor function to let it as clean as possible.