Cross-browser compatibility added