Syntax error 

Replace Window.document -> window.document 
(case sensitive)