New version of my refactored gh3.js