[PATCH] Corrects several browser compatibility issues