tweak opener js to accept pre-defined targets