SensorTag examples: Added code that waits for async library loading to finish (this cause bugs when util.js does not load in time).