updated js and hide class