added compatibility with latest changes to the chrome API

Updated uses of "old" chrome API methods to their newer versions to avoid potential issues with deprecation as part of #110.