set links to target parent so we arent trapped in an iframe. 

Also removed unused/commented code.