uidriver/js: Bug fix: Create goroutine for a function passed to rAF
uidriver/js: Bug fix: Create goroutine for a function passed to rAF

This is necessary not to cause dead-lock.

Updates #1161

hajimehoshi/ebiten,hajimehoshi/ebiten