update style. fix js bug in firefox