Add simple update batching using raf