Cross browser compatability

-Compatable with IE7+, Mozilla and webkit browsers
-fixed document declaration