fixing jshint findings on facebook.js