use top.location.href for iframe
update git ignore
Fix wrong syntax