Simple dependency free Node.js module that tries something as many times as specified.