fix box-pack for firefox browser
Add a script to determine the browser