Resoved a couple cross-browser compatibility issues.