when there is no member key set.

Make it backward compactable
Refactored Common js
Refactoring common js