Removing Window on JS