Switching to firefox app js