added execute function suggested in https://github.com/WaterfallEngineering/SpookyJS/issues/113

Signed-off-by: Bjorn Westergard <bwestergard@Hueco.internal.ngpvan.net>