fixed firefox error
added document