Fixed window binding. Updated index.html