Allow times in the future and fixed setTimeout

Like the plugin. I've made a few standard changes to allow times in the future. Suggesting a pull request.