preliminary implementation of setTimeout/setInterval runtime implementations