internal/uidriver/js: Bug fix: CursorPosition crashed before the main loop on browsers
internal/uidriver/js: Bug fix: CursorPosition crashed before the main loop on browsers

Closes #1559

hajimehoshi/ebiten,hajimehoshi/ebiten