TDS implementation in Javascript for connecting SQL Server