Update GizmoHelper.js

Minor improvements and source cleaning