used jshint, found missing semicolon an removed read encoding