Simple Javascript library for executing tasks when all prerequisites have been fulfilled