Moves AppleScript to separate file, and adds a check to see if Chrome is running; Refactor of app delegate to load script from file