Ongoing PinBuilder work.

Fix race condition that was preventing Firefox from working.  IE still broken due to cross-origin issue.