Downgraded nuget package dependencies to 4.0
Removed duplicate code from JS client