Sql Get String Length In Javascript Code