Further refactoring of easyResponsiveTabs.js

Warning: Untested!