JSDoc and code reordering for OpenLayers widget