generized functions to base.js and fixed buttons on single job page