Javascript Get Max Length Of String In Sql