refactored and method added to be called from other component
Merge branch 'wigExplorer' of https://github.com/biojs/biojs into wigExplorer

Conflicts:
	src/main/javascript/Biojs.wigExplorer.js