Made some changes to the brjs script that should hopefully make it Mac
compatible.