Adding file common.js
useful functions to fill Map structure