updated lines.js
implemented both a async and sync lineCount functions