Changed main tag to div for firefox and safari compatability