Added hydration functionality for phonegap build