Fix x-browser issue with ListView/FlipView

The template code uses a setImmediate which is a function that doesn't
exist everywhere, shim it to setTimeout(_, 0) where it doesn't.