browser compatibility fixes. firefox still hellabuggy.