maybe this could become a lookup object?
var obj = {TARGET_IFRAME: function(){...},}

so instead of switch you could

if(obj[_target]) {
obj[_target]()
} else{
//default
}