Fixes cross browser compatibility
removes junk