Refactored js code to underline tabs names to function for re-use