IE browser compatibility and general code/styling cleanup