Use rAF for async dispatch

Fixes #31