save $(box) to var $box in order to prevent multiple jQuery calls