fix TypeError: undefined is not an object (evaluating '$window.applicati...

Fix

    TypeError: undefined is not an object (evaluating '$window.applicationPreferences.get')

caused because applicationPreferences object is at window.appgiraffe.plugins.applicationPreferences and not at window.applicationPreferences

See https://github.com/xcodeguy/plugins-application-preferences/blob/master/plugin.xml