Frontend: Cleaning up and improving firefox support