Added Cross Browser compatability