Don't create dataSource templates until they are needed.

There was a problem where these were being created before onDomReady.