NodeJS mixin to add one-time ready event