adding js for tabs