[SJS-113]: Create a function called onOnce that would be fired only once
[SJS-130]: Rename onOnce() to once()
[SJS-132]: Fix for TypeError being thrown when once() is invoked