Added Flush() and datamanager.js
Added Flush() and datamanager.js