added loadSegment method to enable preloading and asynchronous usage
added waddle.js to compile preloaded segments