#47 for firefox finally done, bug fixes