Used the changeActive function, defined in func.js