Fix title of page action on tabs.onUpdated and some jshint validations

Sorry for the crazy diff. It's mainly indentation.