That is insane. Anything that you do on your own time, outside the company premises, and using your own resources (e.g. weekend or late-night hacking at home using your own computer, and not going through the company's VPN) SHOULD NEVER belong to the company. I would never sign that. If they won't change that part, run away.