Added header and completed IE compatability