Preparation work for Firefox extension