Updated for firefox 29