Remove `$objResource` when adding resources via Ajax