javascript micro frame for code maintainability