updates to safari experiments in javascript for automation, towards implementing a tab extraction/etc script to use with alfred