Issue#181

- Refractored the CommonHelper

- updated the JS files to work the same way

- Fixed various bugs dependent of the CommonHelper updates