Fix jshint errors from PostItem refactoring