Resolving some cross-browser issues