updated mode, dataStore and objStore to AMD module format