Use xdg-open instead of firefox

xdg-open will automatically choose the right browser (the default one). It should come with every system running X11.