applescripts and javascripts