Cookbook for JavaScript for Automation in Mac OS X Yosemite