Update application2.js

hiding of box after the change of class breaks