rename string allocation to v8_str
add 'new-win-policy' event

Fix #1375 #1290